import {createRouter, createWebHistory} from "vue-router";
import demo from "../components/demo.vue";
import HelloWorld from "../components/HelloWorld.vue";


const router= createRouter({
    history:createWebHistory(),
    routes:[
        {
            path: "/demo",    // 路径
            name: "demo",  // 名字
            component: demo
         },
        {
            path:"/hello",
            name:'hello',
            component: HelloWorld
        }
    ]

})
export default router